You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TMtxVec Class > TMtxVec Methods > Copy Method > TMtxVec.Copy Method ([In] TMtxVec)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TMtxVec.Copy Method ([In] TMtxVec)

Copy object values.

Syntax
C#
Visual Basic
public TMtxVec Copy([In] TMtxVec Src);

Copy each of Vec elements to the calling object. Size and Complex properties of the calling object are set implicitly to match Vec object.

using Dew.Math; using Dew.Math.Units; namespace Dew.Examples() { void Example() { TVec a,b,c; MtxVec.CreateIt(out a, out b, out c); try { a.SetIt(true,new double[] {1,2,3,4}); // a = [1,2,3,4] i.e 1+2i ; 3+4i b.Copy(a); // b = [1,2,3,4] c.Copy(a,b); //concatenate a and b and store in c = [1,2,3,4,1,2,3,4] } finally { MtxVec.FreeIt(ref a,ref b,ref c); } } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!